package cn.edu.zafu.bigdata.x.wgj.d;

public class WithFinalMethod {
    public final void finalMethod(){
        System.out.println("This is a final method.");
    }
}
//尝试重写会报错
//class SubClass2 extends WithFinalMethod{
//    @Override
//    public void finalMethod(){}
//}

